import actionTypes from './actionTypes'
import UserType from '../types/UserType'


//action creator
export const startLogin = () => {
    return {
        type: actionTypes.START_LOGIN
    }
}
export const loginSuccess = (displayName: string, userID: number, userType: UserType) => {
    return {
        type: actionTypes.LOGIN_SUCCESS,
        displayName,
        userID,
        userType
    }
}
export const loginFail = () => {
    return {
        type: actionTypes.LOGIN_FAIL
    }
}
